import {myRequest} from "../utils/request.js"

// tips： 每个模块下的接口建立一个.js ，引用requset.js ，如果有特殊需求 可以多传个type 之后做对应判断  (最好用驼峰命名规范)



// ----------------------------------------------------------分割线---------------------------------------------------------
//我的-个人信息
export function getuserinfo(data){
	return myRequest({
		url:"member/memberInfo",
		method: "post",
		data:data||{}
	})
}
//首页 轮播、列表
export function fhIndex(data){
	return myRequest({
		url:"index/index",
		method: "post",
		data:data||{}
	})
}
//判断实名认证状态
export function realStatus(data){
	return myRequest({
		url:"member/realStatus",
		method: "post",
		data:data||{}
	})
}
//DAO学堂首页
export function article(data){
	return myRequest({
		url:"article/index",
		method: "post",
		data:data||{}
	})
}
//文章列表
export function articleList(data){
	return myRequest({
		url:"article/articleList",
		method: "post",
		data
	})
}
//文章详情
export function articleInfo(data){
	return myRequest({
		url:"article/info",
		method: "post",
		data
	})
}
//团队战力排行榜
export function powerRanking(data){
	return myRequest({
		url:"team/powerRanking",
		method: "post",
		data
	})
}
//团队会员详情
export function teamDetails(data){
	return myRequest({
		url:"team/details",
		method: "post",
		data
	})
}
//个人战力排行榜
export function userRanking(data){
	return myRequest({
		url:"member/powerRanking",
		method: "post",
		data
	})
}
//下载地址
export function download(data){
	return myRequest({
		url:"agreement/download",
		method: "post",
		data:data||{}
	})
}
export function memberBalance(data){
	return myRequest({
		url:"member/memberBalance",
		method: "post",
		data:data||{}
	})
}
export function market(data){
	return myRequest({
		url:"currency_rent/market",
		method: "post",
		data:data||{}
	})
}
export function consignments(data){
	return myRequest({
		url:"currency_rent/consignment",
		method: "post",
		data:data||{}
	})
}
export function myList(data){
	return myRequest({
		url:"currency_rent/myList",
		method: "post",
		data:data||{}
	})
}
export function cancel(data){
	return myRequest({
		url:"currency_rent/cancel",
		method: "post",
		data:data||{}
	})
}
